package com.example.shopsystem.dao;

import com.example.shopsystem.entity.Good;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodMapper {
    List<Good> ViewProductList();//显示所有商品

    Good viewItem(@Param("goodId") String goodId);//查询单个商品

    List<Good> viewGoodList();//显示在售的商品

    Boolean addItem(@Param("good") Good good);

    Boolean modifyItem(@Param("good") Good good);

    List<Good> queryGood(@Param("goodName")String goodName);//根据商品名

}
